package com.fan.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fan.dao.OrderDao;
import com.fan.entity.Order;
import com.fan.service.OrderService;
import com.fan.utils.CommonResults;
import com.sixth.until.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老范
 * @create: 2022-05-09 17:36
 **/
@Service
public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements OrderService {
    @Autowired
    private OrderDao orderDao;

    @Override
    public CommonResults getOrderStatusByCourseIdAndHuiYuanId(String id, String HuiYuanId) {
        Order order = orderDao.getOrderStatusByCourseIdAndHuiYuanId(id, HuiYuanId);
        return new CommonResults(2000,"查询成功",order);
    }
}
